//
//  CustomAlertView.m
//  Wallets Manager
//
//  Created by Tung Nguyen on 10/1/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import "CustomAlertView.h"

@interface CustomAlertView ()

@end

@implementation CustomAlertView
@synthesize cancelButton;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [self setCancelButton:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)cancelButtonPressed:(id)sender {
    [self.view removeFromSuperview];
}

- (IBAction)incomeButtonPressed:(id)sender {
    NSLog(@"123456789");
     [self.view removeFromSuperview];
}
@end
